@echo off
chcp 65001 >nul
echo ========================================
echo Docker Build Test Script
echo ========================================

echo Checking Docker service...
docker version >nul 2>&1
if %errorlevel% neq 0 (
    echo Docker service is not running!
    echo Please start Docker Desktop first.
    pause
    exit /b 1
)
echo Docker service is running!

echo.
echo Building image liured88/fileup...
docker build -t liured88/fileup .
if %errorlevel% neq 0 (
    echo Build failed!
    pause
    exit /b 1
)

echo.
echo Build successful!
echo.
echo Image information:
docker images | findstr "liured88/fileup"

echo.
echo To run the container manually:
echo docker run -d -p 7598:5000 -p 4041:4040 --name filleup liured88/fileup

pause